package com.joinway.framework.support.audit.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.joinway.framework.support.audit.constant.AuditConstants;

@Deprecated
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Audit {
	/**
	 * 审计对象名称
	 * @return
	 */
	String value() default "";
	
	/**
	 * 输入的用户id名称
	 * @return
	 */
	String id() default AuditConstants.DEFAULT_USER_ID_KEY;
	
	/**
	 * 含有用户id属性的输入参数index
	 */
	int index() default 0;
}
